package com.gy.spring.mvc.service.impl;

import com.gy.spring.mvc.common.dao.CommonDao;
import com.gy.spring.mvc.entity.User;
import com.gy.spring.mvc.service.UserService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务实现类
 *
 * @author geYang
 * @since 2018-03-08
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private CommonDao<User> userMapper;

    @Override
    public void test() {
        User user = new User();
        int i = 1 / 0;
        System.out.println(i);
    }

    @Override
    public List listUser() {
        return userMapper.list("UserMapper.listUser", null);
    }

}
